//const _ = require('loadsh');
const merchantService = require("../../../app/service/o2o_client/merchant.server.service.js");


module.exports = {
    getAllPassMerchantsFromA: getAllPassMerchantsFromA,
    getTest: getTest
}


function getAllPassMerchantsFromA(req, res, next){
  console.log("Data return from server: ");
    merchantService.getAllPassMerchantsFromA(req, res, next);
    //console.log(res.data);
    
}

function getTest(req, res, next){
  console.log("Some one ..........");
    var menus = [
        {
          state: 'cccc',
          displayName: 'WWWWWWWWWWttttttttttttttttttttttttWWWWWWWW'
        },
        {
          state: 'abocccccut',
          displayName: 'Abouccct'
        }
      ];
    //   res.send(menus);
    
      res.json(menus);
}




